package cy.jsonview.code;
import java.awt.Font;
import java.awt.Color;

/**
 * 放置公共属性、对象等，方便统一管理
 * @author zyd
 *
 */
public class Common {
	/**
	 * 主窗体尺寸
	 */
	public static final int MAIN_WINDOW_WIDTH=1300;
	public static final int MAIN_WINDOW_HEIGHT=800;
	// 文本区域与树形区域的比例
	public static final double TEXT_TREE_DIVIDER_LOCATION=0.4;
	
	/**
	 *  查找对话框尺寸
	 */
	public static final int FIND_DIALOG_TEXTAREA_WIDTH=30;
	public static final int FIND_DIALOG_WIDTH=500;
	public static final int FIND_DIALOG_HEIGHT=80;
		
	
	
	/**
	 * 文本区域设置  
	 */
	public static final int TEXT_AREA_FONT_SIZE=16;
	public static final Font TEXT_AREA_FONT=new Font("微软雅黑",Font.ROMAN_BASELINE, TEXT_AREA_FONT_SIZE);
	//光标区域行高
	public static final Font TEXT_ROW_HEIGHT=new Font("微软雅黑",Font.ROMAN_BASELINE, TEXT_AREA_FONT_SIZE+7);
	// 设置双引号内文字的颜色
	public static final Color TEXT_STR_DOUBLE_QUOTE_COLOR=new Color(0, 128, 43);
//	new Color(61, 181, 77)
	// 设置整型文字的颜色
	public static final Color TEXT_INT_COLOR=new Color(255, 26, 140);		
	// 设置浮点数文字的颜色
	public static final Color TEXT_FLOAT_COLOR=new Color(255, 128, 0);
	// 设置布朗文字的颜色
	public static final Color TEXT_BOOLEAN_COLOR=new Color(204, 51, 255);	
	
		
	
	/**
	 *  树形区域设置
	 *  
	 */
	
	//设置默认是否展开树
	public static final boolean EXPAND_TREE=true;
	// 设置缩进
	public static final int TREE_INDENT=20;
	
	public static final int TREE_AREA_FONT_SIZE=16;
	public static final Font TREE_AREA_FONT=new Font("微软雅黑",Font.ROMAN_BASELINE, TREE_AREA_FONT_SIZE);
	// 行高
	public static final int TREE_ROW_HEIGHT=TREE_AREA_FONT_SIZE+10;
	// 设置默认文字的颜色
	public static final Color TREE_TEXT_COLOR=new Color(0, 127, 255);
	// 设置选中时的背景色
	public static final Color TREE_BACKGROUND_SELECTION_COLOR=new Color(255, 255, 204);
	//设置没选中时的背景色
	public static final Color TREE_BACKGROUND_NON_SELECTION_COLOR=Color.WHITE;
	
	// 设置字符文字的颜色
	public static final Color TREE_STR_COLOR=new Color(0, 128, 43);
	// 设置数字文字的颜色
	public static final Color TREE_NUMBER_COLOR=new Color(255, 77, 166);		
	// 设置null文字的颜色
	public static final Color TREE_NULL_COLOR=new Color(0, 172, 230);
	// 设置布朗文字的颜色
	public static final Color TREE_BOOLEAN_COLOR=new Color(204, 51, 255);
	// 设置object的颜色
	public static final Color TREE_OBJECT_COLOR=new Color(0, 0, 255);
	// 设置object的字体
	public static final Font TREE_OBJECT_FONT=new Font("微软雅黑",Font.HANGING_BASELINE, TREE_AREA_FONT_SIZE);

	

}
